Optimal. Leaf size=118 \[ -\frac {b d^3 n}{x}-3 b d^2 e n x-\frac {1}{3} b d e^2 n x^3-\frac {1}{25} b e^3 n x^5-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{x}+3 d^2 e x \left (a+b \log \left (c x^n\right )\right )+d e^2 x^3 \left (a+b \log \left (c x^n\right )\right )+\frac {1}{5} e^3 x^5 \left (a+b \log \left (c x^n\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {276, 2372}
\begin {gather*} -\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{x}+3 d^2 e x \left (a+b \log \left (c x^n\right )\right )+d e^2 x^3 \left (a+b \log \left (c x^n\right )\right )+\frac {1}{5} e^3 x^5 \left (a+b \log \left (c x^n\right )\right )-\frac {b d^3 n}{x}-3 b d^2 e n x-\frac {1}{3} b d e^2 n x^3-\frac {1}{25} b e^3 n x^5 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2372
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^2} \, dx &=-\frac {1}{5} \left (\frac {5 d^3}{x}-15 d^2 e x-5 d e^2 x^3-e^3 x^5\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (3 d^2 e-\frac {d^3}{x^2}+d e^2 x^2+\frac {e^3 x^4}{5}\right ) \, dx\\ &=-\frac {b d^3 n}{x}-3 b d^2 e n x-\frac {1}{3} b d e^2 n x^3-\frac {1}{25} b e^3 n x^5-\frac {1}{5} \left (\frac {5 d^3}{x}-15 d^2 e x-5 d e^2 x^3-e^3 x^5\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 123, normalized size = 1.04 \begin {gather*} -\frac {b d^3 n}{x}+3 a d^2 e x-3 b d^2 e n x-\frac {1}{3} b d e^2 n x^3-\frac {1}{25} b e^3 n x^5+3 b d^2 e x \log \left (c x^n\right )-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{x}+d e^2 x^3 \left (a+b \log \left (c x^n\right )\right )+\frac {1}{5} e^3 x^5 \left (a+b \log \left (c x^n\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.16, size = 587, normalized size = 4.97
method | result | size |
risch | \(-\frac {b \left (-e^{3} x^{6}-5 d \,e^{2} x^{4}-15 d^{2} e \,x^{2}+5 d^{3}\right ) \ln \left (x^{n}\right )}{5 x}-\frac {-30 \ln \left (c \right ) b \,e^{3} x^{6}-30 x^{6} a \,e^{3}-15 i \pi b \,e^{3} x^{6} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-225 i \pi b \,d^{2} x^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} e -75 i \pi b d \,e^{2} x^{4} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-75 i \pi b d \,e^{2} x^{4} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-150 x^{4} a d \,e^{2}-450 a \,d^{2} x^{2} e +150 a \,d^{3}+75 i \pi b d \,e^{2} x^{4} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+15 i \pi b \,e^{3} x^{6} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+15 i \pi b \,e^{3} x^{6} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+150 b \,d^{3} n +150 d^{3} b \ln \left (c \right )-450 \ln \left (c \right ) b \,d^{2} x^{2} e -150 \ln \left (c \right ) b d \,e^{2} x^{4}+225 i \pi b \,d^{2} e \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+6 b \,e^{3} n \,x^{6}+225 i \pi b \,d^{2} e \,x^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-15 i \pi b \,e^{3} x^{6} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+75 i \pi b d \,e^{2} x^{4} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+50 b d \,e^{2} n \,x^{4}+450 b \,d^{2} e n \,x^{2}+75 i \pi b \,d^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+75 i \pi b \,d^{3} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-225 i \pi b \,d^{2} e \,x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-75 i \pi b \,d^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )-75 i \pi b \,d^{3} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{150 x}\) | \(587\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 132, normalized size = 1.12 \begin {gather*} -\frac {1}{25} \, b n x^{5} e^{3} + \frac {1}{5} \, b x^{5} e^{3} \log \left (c x^{n}\right ) + \frac {1}{5} \, a x^{5} e^{3} - \frac {1}{3} \, b d n x^{3} e^{2} + b d x^{3} e^{2} \log \left (c x^{n}\right ) + a d x^{3} e^{2} - 3 \, b d^{2} n x e + 3 \, b d^{2} x e \log \left (c x^{n}\right ) + 3 \, a d^{2} x e - \frac {b d^{3} n}{x} - \frac {b d^{3} \log \left (c x^{n}\right )}{x} - \frac {a d^{3}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 149, normalized size = 1.26 \begin {gather*} -\frac {3 \, {\left (b n - 5 \, a\right )} x^{6} e^{3} + 25 \, {\left (b d n - 3 \, a d\right )} x^{4} e^{2} + 75 \, b d^{3} n + 75 \, a d^{3} + 225 \, {\left (b d^{2} n - a d^{2}\right )} x^{2} e - 15 \, {\left (b x^{6} e^{3} + 5 \, b d x^{4} e^{2} + 15 \, b d^{2} x^{2} e - 5 \, b d^{3}\right )} \log \left (c\right ) - 15 \, {\left (b n x^{6} e^{3} + 5 \, b d n x^{4} e^{2} + 15 \, b d^{2} n x^{2} e - 5 \, b d^{3} n\right )} \log \left (x\right )}{75 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.97, size = 146, normalized size = 1.24 \begin {gather*} - \frac {a d^{3}}{x} + 3 a d^{2} e x + a d e^{2} x^{3} + \frac {a e^{3} x^{5}}{5} - \frac {b d^{3} n}{x} - \frac {b d^{3} \log {\left (c x^{n} \right )}}{x} - 3 b d^{2} e n x + 3 b d^{2} e x \log {\left (c x^{n} \right )} - \frac {b d e^{2} n x^{3}}{3} + b d e^{2} x^{3} \log {\left (c x^{n} \right )} - \frac {b e^{3} n x^{5}}{25} + \frac {b e^{3} x^{5} \log {\left (c x^{n} \right )}}{5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.84, size = 166, normalized size = 1.41 \begin {gather*} \frac {15 \, b n x^{6} e^{3} \log \left (x\right ) - 3 \, b n x^{6} e^{3} + 15 \, b x^{6} e^{3} \log \left (c\right ) + 75 \, b d n x^{4} e^{2} \log \left (x\right ) + 15 \, a x^{6} e^{3} - 25 \, b d n x^{4} e^{2} + 75 \, b d x^{4} e^{2} \log \left (c\right ) + 225 \, b d^{2} n x^{2} e \log \left (x\right ) + 75 \, a d x^{4} e^{2} - 225 \, b d^{2} n x^{2} e + 225 \, b d^{2} x^{2} e \log \left (c\right ) + 225 \, a d^{2} x^{2} e - 75 \, b d^{3} n \log \left (x\right ) - 75 \, b d^{3} n - 75 \, b d^{3} \log \left (c\right ) - 75 \, a d^{3}}{75 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.52, size = 145, normalized size = 1.23 \begin {gather*} \ln \left (c\,x^n\right )\,\left (\frac {6\,b\,d^2\,e\,x^2+4\,b\,d\,e^2\,x^4+\frac {6\,b\,e^3\,x^6}{5}}{x}-\frac {b\,d^3+3\,b\,d^2\,e\,x^2+3\,b\,d\,e^2\,x^4+b\,e^3\,x^6}{x}\right )-\frac {a\,d^3+b\,d^3\,n}{x}+\frac {e^3\,x^5\,\left (5\,a-b\,n\right )}{25}+\frac {d\,e^2\,x^3\,\left (3\,a-b\,n\right )}{3}+3\,d^2\,e\,x\,\left (a-b\,n\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________